package cn.wyf.demo.service.impl;

import org.springframework.stereotype.Service;

import java.util.Arrays;

import cn.wyf.demo.model.XmlData;
import cn.wyf.demo.service.BaseService;
import cn.wyf.demo.service.XmlTestService;

@Service("XmlTestService")
public class XmlTestServiceImpl extends BaseService implements XmlTestService {
    @Override
    public String getXmlData() {
        String xmlData = makeXmlData(Arrays.asList(new XmlData("name", "tom安安"), new XmlData("age", "12")),
                Arrays.asList(new XmlData("body", "130"), new XmlData("foot", "1112")));
        return xmlData;
    }

    @Override
    public String getJsonData() {
        return null;
    }
}